package com.xhu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xhu.common.vo.SaleperformVo;
import com.xhu.pojo.Saleperform;
import org.apache.ibatis.annotations.Param;

public interface SaleperformMapper extends BaseMapper<Saleperform> {

    /**
     * 分页查询所有
     *
     */
    IPage<SaleperformVo> getAll(IPage<Saleperform> page);

    /**
     * 通过id查
     *
     */
    SaleperformVo getById(@Param("id") Integer id);


    /**
     * 通过姓名查
     */
    IPage<SaleperformVo> getByName(@Param("page") IPage<Saleperform> page, @Param("name") String name);


    /**
     * 插入一条
     *
     */
    Integer insertOne(@Param("vo") SaleperformVo vo);


    /**
     * 更新
     */

    Integer update(@Param("vo") SaleperformVo vo);
}